package org.fengling.readingplatform.manager.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.fengling.readingplatform.model.dto.system.SysUserDto;
import org.fengling.readingplatform.model.entity.system.SysUser;

import java.util.List;

@Mapper
public interface SysUserMapper {

    // 通过用户名查询用户信息的方法
    SysUser selectUserInfoByUserName(String userName);

    // 分页查询用户方法
    List<SysUser> findByPage(SysUserDto sysUserDto);

    // 删除用户信息方法
    void delete(Long userId);
}
